<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>华中师范大学附属孝感幼儿园网上招生系统</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="__ROOT__/Public/adminlte/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="__ROOT__/Public/adminlte/dist/css/AdminLTE.min.css">

  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect.
  -->
  <link rel="stylesheet" href="__ROOT__/Public/adminlte/dist/css/skins/skin-blue.min.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<include file="./Application/Home/View/adminlte/wrap.html" siderid="3" />

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper" id="mcont">

		
    <!-- Main content -->
    <section class="content">

      <!-- Your Page Content Here -->
	<div class="col-md-6">
          <!-- Horizontal Form -->
          <div class="box box-info">
            <div class="box-header with-border">
              <h3 class="box-title">修改老师信息<small>&nbsp;&nbsp;&nbsp;&nbsp;* 填空则不修改</small></h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form class="form-horizontal" method="post" id="edithsf" action="__CONTROLLER__/editthself">
              <div class="box-body">

				<input type="hidden" name="id" value="{$data.id}" />
                <div class="form-group">

                  <label for="inputname" class="col-sm-2 control-label">姓名</label>
				  <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" id="inputname" value="{$data.name}" >
                  </div>

                </div>
                

				<div class="form-group">
                  <label for="inputpassid" class="col-sm-2 control-label">账号</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" disabled id="inputpassid" value="{$data.passid}" >
					<i>* 此项禁止修改</i>
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputpasswd" class="col-sm-2 control-label">原密码</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" name="passwordago" id="inputpasswd" ><i>* 此项必填</i>
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputpasswd" class="col-sm-2 control-label">新密码</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" name="password" id="inputpasswd" >
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputtel" class="col-sm-2 control-label">手机号码</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" name="telephone" id="inputtel" value="{$data.telephone}" >
                  </div>
                </div>


				<div class="form-group">
                  <label for="inputsfid" class="col-sm-2 control-label">账号状态</label>
                  <div class="col-sm-10">
                    <select class="form-control" disabled name="state">
						<option  value="1" <if condition="$data.state == 1">selected="selected"<else/></if>>正常</option>
						<option value="2" <if condition="$data.state == 2">selected="selected"<else/></if>>禁用</option>
					</select>
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputnot" class="col-sm-2 control-label">简介备注</label>
                  <div class="col-sm-10">
					<textarea class="form-control" name="notes" id="inputnot">{$data.notes}</textarea>
                  </div>
                </div>
				
              </div>
              <!-- /.box-body -->
              <div class="box-footer">

                <button type="button" class="btn btn-default" onclick="window.history.go(-1);">不理返回</button>
                <button type="button" id="btn_post" class="btn btn-info pull-right">确定</button>

              </div>
              <!-- /.box-footer -->
            </form>
          </div>
          <!-- /.box -->
 
        </div>




    </section>
    <!-- /.content -->

    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 2.2.3 -->
<script src="__ROOT__/Public/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="__ROOT__/Public/adminlte/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="__ROOT__/Public/adminlte/dist/js/app.js"></script>

<script type="text/javascript">
<!--
	$(function(){

		$('#btn_post').click(function(){
			if($("input[name='passwordago']").val()==""){
				alert("请填写完整");
				return false;
			}
			if($("input[name='passwordago']").val() == $("input[name='password']").val()){
				alert("原密码不能与新密码相同");
				return false;
			}

			$("#edithsf").submit();
			
		});

	});

//-->
</script>

</body>
</html>
